<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>留言管理</title>
    <#-- 使用相对当前模板文件的路径 再去找另一个模板文件 -->
    <#include "/common/link.ftl">

</head>
<body class="hold-transition skin-black sidebar-mini">
<div class="wrapper">
    <#include "/common/navbar.ftl">
    <!--定义一个变量  用于菜单回显-->
    <#assign currentMenu="messageBoard"/>

    <#include "/common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>留言管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/messageBoard/serverList" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <a href="/messageBoard/list" class="btn btn-info btn-input" style="margin: 20px;">
                        <span class="glyphicon glyphicon-pencil"></span> 留言板</a>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive ">
                    <table class="table table-hover table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>留言人</th>
                            <th>留言内容</th>
                            <th>留言时间</th>
                            <th>业务大类</th>
                            <th>业务小类</th>
                            <th>未回复(条)</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list pageInfo.list as m>
                            <tr>
                                <td>${m.id}</td>
                                <td>${m.nickname}</td>
                                <td style="display: flex;"><div style="white-space:nowrap; width:300px;overflow:hidden;">${m.content}</div>......</td>
                                <td>${((m.createTime)?string("yyyy-MM-dd HH:mm:ss"))!}</td>
                                <td>${m.category.title}</td>
                                <td>${m.categoryItem.title}</td>
                                <td>${(m.noReplyCount)!0}</td>
                                <td>
                                    <a href="/messageBoard/serverInput?id=${m.id}" class="btn btn-info btn-xs btn-show">
                                        <span class="glyphicon glyphicon-eye-open"></span> 查看
                                    </a>
                                    <a class="btn btn-danger btn-xs btn-delete" data-url="/messageBoard/delete?id=${m.id}">
                                        <span class="glyphicon glyphicon-trash"></span> 删除
                                    </a>
                                </td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                    <!--分页-->
                    <#include "/common/page.ftl" >
                </div>
            </div>
        </section>
    </div>
    <#include "/common/footer.ftl" >
</div>
</body>
</html>
